﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="bootstrap-3.4.1-dist/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="container">
            <div>
                姓名：<asp:TextBox ID="Name" runat="server"></asp:TextBox>
                &nbsp;<asp:Button ID="Button2" runat="server" Text="搜索" OnClick="Button1_Click" />
            </div>
            <br />
            <br />
            <div class="form-group">
           姓名： <asp:TextBox ID="Username" runat="server"></asp:TextBox>
            <br />
           密码： <asp:TextBox ID="Password" runat="server"></asp:TextBox>
            <br />
           邮箱： <asp:TextBox ID="Email" runat="server"></asp:TextBox>
            <br />
           介绍： <asp:TextBox ID="Introduce" runat="server"></asp:TextBox>
            <br />
            <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button2_Click" />
        </div>
        <div class="container form-group">
            <asp:GridView ID="GridView1" runat="server" CssClass="table table-bordered table-hover" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                        <asp:BoundField DataField="stu_name" HeaderText="姓名" />
                        <asp:BoundField DataField="password" HeaderText="密码" />
                        <asp:BoundField DataField="email" HeaderText="邮箱" />
                        <asp:BoundField DataField="introduce" HeaderText="自我介绍" />
                        <asp:CommandField HeaderText="编辑" ShowEditButton="True" ShowHeader="True">
                        <ItemStyle Width="150px" />
                        </asp:CommandField>
                        <asp:CommandField HeaderText="删除" ShowDeleteButton="True" ShowHeader="True" />
                    </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
            
        </div>
        </div>
    </form>
</body>
</html>
